import 'dart:io';

import 'package:package_info_plus/package_info_plus.dart';

class DataHelper {
  DataHelper._();

  static Map<String, dynamic> getBaseMap() {
    var map = <String, dynamic>{};
    return map;
  }

  static Map<String, dynamic> getDefaultHeader() {
    var header = <String, dynamic>{};
    header["Content-Type"] = "application/json";
    // header["Accept-Encoding"] = "identity";
    // header["apiVersion"] = "v${SystemConfig.packageInfo.version}";
    // if (SystemConfig.androidInfo != null) {
    //   header["os"] = "android";
    //   header["platform"] = "android";
    //   header["source"] = SystemConfig.androidInfo?.brand ?? "unKnow";
    //   header["mode"] = SystemConfig.androidInfo?.model ?? "unKnow";
    //   header["osVersion"] =
    //       SystemConfig.androidInfo?.model == null ? "unKnow" : "android ${SystemConfig.androidInfo?.version.release}";
    //   if (SystemConfig.androidInfo!.androidId != null) {
    //     header["mid"] = SystemConfig.androidInfo!.androidId!;
    //   }
    // }
    // if(UserConfig.getToken()!=null&&UserConfig.getToken()!.isNotEmpty){
    //   header["Authentication"] = UserConfig.getToken();
    // }

    return header;
  }

}
